package com.jzmy.specialist.feign;

import com.example.commons.entity.CoursesDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author mengzhichao
 * @create 2022-08-29-11:19
 */
@Component
@FeignClient(name = "jzmy-cultivate",path = "/" )   //服务调用
public interface CoursesOpenFeign {

    @GetMapping("/courses/selectById")
    CoursesDO selectById(Long id);
}
